package cn.magicduck.demo;

import cn.magicduck.demo.mq.CreateAccount;
import com.alibaba.fastjson.JSON;

/**
 * @author 神奇的鸭鸭
 * @description
 * @date 2020/8/1714:36
 */
public class CreateAccountMqService {
    public void onMessage(String message) {
        CreateAccount mq = JSON.parseObject(message, CreateAccount.class);

        mq.getNumber();
        mq.getAccountDate();

        // ... 处理自己的业务
    }
}
